<template>
   <div>
     <el-form ref="form" :model="form" label-width="80px">
      <el-form-item label="友链名称">
        <el-input v-model="form.name"></el-input>
      </el-form-item>
      <el-form-item label="友链地址">
        <el-input v-model="form.url"></el-input>
      </el-form-item>
      <el-form-item label="友链地址">
        <el-input v-model="form.url"></el-input>
      </el-form-item>
      <el-form-item label="友链描述">
        <el-input type="textarea" v-model="form.desc"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary">立即创建</el-button>
        <el-button @click="goBack">取消</el-button>
      </el-form-item>
    </el-form>
   </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        name: "",
        url: "",
        desc: ""
      }
    };
  },
  methods: {
    goBack() {
            this.$parent.$parent.checkVisibale = false;
    },
  }
};
</script>

<style scoped>
.el-input {
  width: 400px;
}
.el-textarea {
  width: 400px;
}
</style>

